package cn.edu.jlu.grid.vjm;

public class Cluster {
	public String name;
	public String resourceManagerContact;
	
	/* the average waiting time of external jobs on this Cluster */
	public int averageWaitingTime = 0;
	
	/* the waiting time of the earlist submitted external job in 
	 * the waiting queue
	 */
	public int earilestJobWaitingTime = 0;
	
	/* the queue length of external jobs, i.e., the number of
	 * the waiting external jobs on this Cluster
	 */
	public int queueLength = 0;
	
	/* the average interval of two external jobs obtaining the resource */
	public int averageInterval = 1;
	
	/* the number of vjobs allocated to this Cluster */
	public int vjobCount = 0;
	
	/* the maximum expected waiting time of vjobs allocated to this Cluster */
	public int maxExpectedWaitingTime = 0;
	
	public Cluster(String name, String resourceManagerContact) {
		this.name = name;
		this.resourceManagerContact = resourceManagerContact;
	}
}
